bitkeeper revision 1.1037 (40e290ba5o-HQbkksYbWqkMLR6_opw)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Wed, 30 Jun 2004 10:06:50 +0000 (10:06 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Wed, 30 Jun 2004 10:06:50 +0000 (10:06 +0000)
Mis-spelt key.

tools/examples/vifctl

index d71459ed70714970107e6196a4584061e171620e..3ed0d906232f20ff4d19d8ad7e11e9b11bc92fd5 100644 (file)
@@ -138,10 +138,10 @@ class VifControl:
         params = self.vifparams(args[1:])
         # Remove the vif from its bridge.
         Brctl.vif_bridge_rem(params)
-        if params['ip']:
+        if params['ipaddr']:
             # Remove iptables rules for the ip addresses.
             vif = params['vif']
-            for ip in params['ip']:
+            for ip in params['ipaddr']:
                Brctl.vif_restrict_addr(vif, ip, delete=1)